﻿<Window x:Class="CECB.Team.Team_Search_Window"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Team_Search_Window"   x:Name="Window"
        Width="553" Height="471"
        
           WindowStartupLocation="CenterScreen" 
        xmlns:toolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Input.Toolkit"
         Background="#AA000000" AllowsTransparency="True" WindowStyle="None" WindowState="Maximized" 
        mc:Ignorable="d" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006">

    <Grid Height="420" Width="523" Margin="0,20,0,0">

        <Rectangle Margin="0,0,0,12" Stroke="White" RadiusY="19.5" RadiusX="19.5" StrokeThickness="4">
            <Rectangle.Effect>
                <DropShadowEffect Direction="330" BlurRadius="24" ShadowDepth="13" />
            </Rectangle.Effect>
            <Rectangle.Fill>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="Black" Offset="0" />
                    <GradientStop Color="#FFA3A1A1" Offset="0.494" />
                    <GradientStop Color="#FF272121" Offset="0" />
                    <GradientStop Color="#FF272121" Offset="1" />
                </LinearGradientBrush>
            </Rectangle.Fill>
        </Rectangle>
        <StackPanel VerticalAlignment="Top" HorizontalAlignment="Center" Margin="20,0,12,0" Width="499" Height="auto">
            <WrapPanel VerticalAlignment="Top" Height="50">
                <Label Content="Create a Project Team" Height="auto" HorizontalAlignment="Center" Margin="0,10,0,0"  VerticalAlignment="Center" Width="auto" FontSize="20" FontStretch="Normal" FontStyle="Normal" FontWeight="Black" Foreground="#FFEFEFEF"></Label>

            </WrapPanel>
            <WrapPanel VerticalAlignment="Top" Orientation="Horizontal">
               
                <Label Content="Team Name" Height="28" Name="label1" HorizontalAlignment="Left" Margin="0,0,0,0" VerticalAlignment="Top" FontSize="14" FontStyle="Italic" FontWeight="Medium" Foreground="White" BorderThickness="0" BorderBrush="White" Width="142" />
                <toolkit:AutoCompleteBox Name="TeamAutocompleteTextBox" Width="311" Margin="0,0,0,0" Height="30"  ValueMemberPath="team_name"  FilterMode="Contains"  ItemsSource="{Binding}"  TabIndex="1" IsTabStop="True"  SelectionChanged="TeamReferenceTextBox_SelectionChanged" FontSize="18" Background="White" Opacity="1" HorizontalAlignment="Center" UseLayoutRounding="False" BorderBrush="#FFF8F8F8" BorderThickness="2">
                    <toolkit:AutoCompleteBox.ItemTemplate>
                        <DataTemplate>
                            <StackPanel Orientation="Horizontal">
                                <TextBlock Text="{Binding Path=team_reference}"/>
                                <TextBlock Text=" - "/>
                                <TextBlock Text="{Binding Path=team_name}"/>

                            </StackPanel>
                        </DataTemplate>
                    </toolkit:AutoCompleteBox.ItemTemplate>
                </toolkit:AutoCompleteBox>
            </WrapPanel>
            <WrapPanel VerticalAlignment="Top"></WrapPanel>
            <WrapPanel Height="215" Orientation="Horizontal">
                <StackPanel Orientation="Horizontal" Width="499">
                    <Label Content="Team Members" Height="28" Name="label4" HorizontalAlignment="Left" Margin="0,0,0,0" VerticalAlignment="Top" FontSize="14" FontStyle="Italic" FontWeight="Medium" Foreground="White" BorderThickness="0" BorderBrush="White" Width="143" />
                    <ListBox Height="auto"   Width="310" Background="White" Name="listBoxTeamMembers" BorderThickness="2" BorderBrush="White" FontSize="16" />
                </StackPanel>
            </WrapPanel>
        </StackPanel>
        <ComboBox Height="23" HorizontalAlignment="Left" Margin="120,476,0,0" Name="comboBox1" VerticalAlignment="Top" Width="120" />
        <Grid HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,12,14,0">
            <Image Height="32" Margin="2" Source="/CECB;component/images/closeblack.png"  Width="32" MouseLeftButtonDown="Image_MouseLeftButtonDown" />
        </Grid>
    </Grid>
</Window>